import {
	get,
	post
} from './util'
//获取轮播图
let getBanner = get(
	 "/banner"
)

//获取推荐歌单
let getPersonalized = get(
"/personalized?limit=6"
)

//获取最新歌曲
let getNewsong = get(
	"/personalized/newsong"
	)
//获取歌曲信息
let getSong= (id)=>{
	return get(
		"/song/detail?ids="+id
	)
}
// 获得歌词
let getIyric = (id)=>{
	return get(
		"/lyric?id="+id
	)
}
// 获得歌单
let getSheet = (id)=>{
	  return get(
		"/playlist/detail?id="+id
	)
}

export {
	getBanner,
	getPersonalized,
	getNewsong,
	getSong,
	getSheet,
	getIyric
}
